package com.lovo.sys.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.sys.bean.InventoryRecordsBean;
import com.lovo.sys.service.IInventoryRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("inventoryRecords")
public class InventoryRecordsController {
    @Autowired
    private IInventoryRecordsService iInventoryRecordsService;

    @GetMapping("findAll/{pageNO}")
    public IPage<InventoryRecordsBean> findAll(@PathVariable("pageNO") int pageNO){
        return iInventoryRecordsService.findAll(pageNO);
    }
}
